import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {BannerComponent} from "./banner.component";
import { AddComponent } from "./add/add.component";


export const routes: Routes = [
  {
    path: 'list',
    component: BannerComponent,
    children: []
  },
  {
    path: 'add',
    component: AddComponent,
    children: []
  },
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
